﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace PHMEE
{
    public interface IVesselRepository : IBaseRepository<Vessel, Guid>
    {
        Task<List<T>> GetAllByTypeAsync<T>() where T : Vessel;
        /// <summary>
        /// 返回当前船舶安装流量计的模式
        /// </summary>
        /// <param name="vesselId">船舶ID</param>
        /// <returns></returns>
        Task<FlowMeterModeEnum?> GetTemplateModeByVesselIdAsync(Guid vesselId);
    }
}
